from django.conf.urls import patterns
from django.contrib import admin
from django.http import HttpResponse
from app.luca_admin.controller.settings import *
from app.luca_admin.controller.caches import *
from app.luca_admin.controller.fiboajax import *

def get_admin_urls(urls):
    def get_urls():
        my_urls = patterns('',
            (r'^setting/$', admin.site.admin_view(setting)),
            (r'^setting/save/$', admin.site.admin_view(save)),
            (r'^setting/fiboajax/$', admin.site.admin_view(fiboajax)),
            (r'^cache/$', admin.site.admin_view(cache)),
            (r'^cache/clean/$', admin.site.admin_view(clean)),
        )
        return my_urls + urls
    return get_urls

admin_urls = get_admin_urls(admin.site.get_urls())
admin.site.get_urls = admin_urls

